using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class CarInfo
    {
        #region Model
        private int _id;
        private int _adminid;
        private int _userid;
        private int _productid;
        private double _oprice;
        private double _aprice;
        private double _pprice;
        private string _unit;
        private int _count;
        private int _ischeck;
        private string _format;
        private DateTime _createdate;

        //拓展字段
        public string Name="";
        public string[] Imgs = { };
        public string Img = "";
        public float ExpressMoney = 0;
        public string OPriceText = "";
        public string[] APriceText = { };
        /// <summary>
        /// 唯一ID
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 商户ID
        /// </summary>
        public int AdminID
        {
            set { _adminid = value; }
            get { return _adminid; }
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductID
        {
            set { _productid = value; }
            get { return _productid; }
        }
        /// <summary>
        /// 原价
        /// </summary>
        public double OPrice
        {
            set { _oprice = value; }
            get { return _oprice; }
        }
        /// <summary>
        /// 现价
        /// </summary>
        public double APrice
        {
            set { _aprice = value; }
            get { return _aprice; }
        }
        /// <summary>
        /// 拼团价格
        /// </summary>
        public double PPrice
        {
            set { _pprice = value; }
            get { return _pprice; }
        }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            set { _unit = value; }
            get { return _unit; }
        }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int Count
        {
            set { _count = value; }
            get { return _count; }
        }
        /// <summary>
        /// 是否选中（0.未选中  1.已选中）
        /// </summary>
        public int IsCheck
        {
            set { _ischeck = value; }
            get { return _ischeck; }
        }
        /// <summary>
        /// 规格
        /// </summary>
        public string Format
        {
            set { _format = value; }
            get { return _format; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model
    }
}

